package net.lab1024.sa.admin.module.upstream.box;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.admin.module.device.terminal.domain.DeviceTerminalVO;
import net.lab1024.sa.admin.module.upstream.box.domain.UpstreamBoxQueryForm;
import net.lab1024.sa.admin.module.upstream.box.domain.UpstreamBoxEntity;
import net.lab1024.sa.admin.module.upstream.box.domain.UpstreamBoxVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface UpstreamBoxDao extends BaseMapper<UpstreamBoxEntity> {


    List<UpstreamBoxEntity> queryByOffsetAndForm(@Param("begin") Integer begin,
                                                 @Param("offset") Integer offset,
                                                 @Param("queryForm") UpstreamBoxQueryForm queryForm);

    List<UpstreamBoxVO> queryPage(Page<?> page, @Param("queryForm") UpstreamBoxQueryForm queryForm);
}
